/***********************************
* Name: Input.java
* Date: Aug 7, 2010
* @author martin
* @author karen
* Description:
***********************************/

public class Input {

    private int fallingDelay;
    private int raisingDelay;
    private String from;
    private char value;

    /*****************************************
    * Input
    * Constructor
    *****************************************/
    public Input(){
        
        this.fallingDelay = 0;
        this.raisingDelay = 0;
        this.from = "E1";
        this.value = '-';
        
    }

    /*****************************************
    * Input
    * Constructor
    *****************************************/
    public Input(int fallingDelay, int raisingDelay, String from){
        this.fallingDelay = fallingDelay;
        this.raisingDelay = raisingDelay;
        this.from = from;
    }

    /*****************************************
     * @return the fallingDelay
     *****************************************/
    public int getFallingDelay() {
        return fallingDelay;
    }

    /*****************************************
     * @param fallingDelay the fallingDelay to set
     *****************************************/
    public void setFallingDelay(int fallingDelay) {
        this.fallingDelay = fallingDelay;
    }

    /*****************************************
     * @return the raisingDelay
     *****************************************/
    public int getRaisingDelay() {
        return raisingDelay;
    }

    /*****************************************
     * @param raisingDelay the raisingDelay to set
     *****************************************/
    public void setRaisingDelay(int raisingDelay) {
        this.raisingDelay = raisingDelay;
    }
    
    /*****************************************
     * @return the from
     *****************************************/
    public String getFrom() {
        return from;
    }

    /*****************************************
     * @param from the from to set
     *****************************************/
    public void setFrom(String from) {
        this.from = from;
    }

    /*****************************************
     * toString
     * @return String with the content
     * Example: fallingDelay = "4" raisingDelay = "3"
     *****************************************/
    public String toString() {
        String retorno = "fallingDelay = \""+this.fallingDelay+"\" raisingDelay = \""+this.raisingDelay+"\" from = \""+this.getFrom()+"\"";
        return retorno;
    }

    /*****************************************
     * @return the value
     *****************************************/
    public char getValue() {
        return value;
    }

    /*****************************************
     * @param value the value to set
     *****************************************/
    public void setValue(char value) {
        this.value = value;
    }

    /*****************************************
     * resetValue
     * @return void
     * Resets the value of this Input with the
     *  dafault value
     *****************************************/
    public void resetValue() {
        this.value = '-';
    }

    

}